<!DOCTYPE html>
<html>
<head lang="en">
	<meta charset="UTF-8">
	<title>百朋后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/demo.css">
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
</head>
<body>
	<div class="invest_table">
		<table id="default_table" title="订单列表" style="width:100%;min-height:372px;"
			data-options="
				remoteSort:false,
				rownumbers:true,
				singleSelect:true,
				autoRowHeight:false,
				url:'../../borrow/borrowapply/borrowapply_main',
				pagination:true,
				pageSize:10,toolbar:'#tb'
			"
		>
			<thead>
				<tr>
					<th field="borrow_id" width="10%" align="center">借款编号</th>
					<th field="cust_name" width="10%" align="center">客户姓名</th>
					<th field="fac_simple_name" width="12%" align="center">商户简称</th>
					<th field="name" width="12%" align="center">服务类型</th>
					<th field="borrow_money" width="9%" align="center">借款金额</th>
					<th field="borrow_rate" width="8%" align="center">利率</th>
					<th field="delay_time" width="8%" align="center">延期时间（月）</th>
					<th field="ls_value" width="8%" align="center">申请状态</th>
					<th field="action" width="8%" align="center" formatter="format_remark">备注</th>
					<!--<th field="action" width="10%" align="center" formatter="formatAction">操作</th>-->
				</tr>
			</thead>
		</table>
	</div>
	<div id="tb" style="padding:5px;height:auto">
		<form action="../../borrow/borrowapply/borrowapply_main" method="post" id="searchTable">
            <div style="margin-bottom:5px" id="tb_button">
                <!--<a href="#" class="easyui-linkbutton" onclick="borrowapply_detail();" iconCls="icon-man" plain="true">详情</a>
                <a href="javscript:;" onclick="borrowapply_cancel();" class="easyui-linkbutton" iconCls="icon-cancel" plain="true">取消</a>-->
            </div>
			<div>
				借款编号
				<input class="easyui-textbox" id="select_borrowNum" name="select_borrowNum" value="{$search_array.select_borrowNum}" style="width:80px">&nbsp;
				客户姓名
				<input class="easyui-textbox" id="select_custName" name="select_custName" value="{$search_array.select_custName}" style="width:80px">&nbsp;
				商户姓名
				<input class="easyui-textbox" id="select_businessName" name="select_businessName" value="{$search_array.select_businessName}" style="width:80px">&nbsp;
				审核状态
				<select class="easyui-combobox selector" id="select_checkState" name="select_checkState" panelHeight="auto" style="width:85px" data-options="editable:false">
					<option value="">请选择</option>
                    <foreach name="array_state" item="state">
                        <option value="{$state.ls_id}">{$state.ls_value}</option>
                    </foreach>
				</select>&nbsp;
				<script type="text/javascript">$("#select_checkState").find("option[value='{$search_array.select_checkState}']").attr("selected",true);</script>
				借款申请日期
				<input class="easyui-datebox" id="select_start_time" data-options="formatter:myformatter,parser:myparser,editable:false" name="select_start_time" value="{$search_array.select_start_time}" style="width:85px">&nbsp;
                --
                <input class="easyui-datebox" id="select_end_time" data-options="formatter:myformatter,parser:myparser,editable:false" name="select_end_time" value="{$search_array.select_end_time}" style="width:85px">&nbsp;
				<a href="javascript:;" onclick="submitSearch();" class="easyui-linkbutton" iconCls="icon-search">查询</a>&nbsp;
				<a href="javascript:;" onclick="resetSearch();" class="easyui-linkbutton" iconCls="icon-clear">重置</a>
			</div>
		</form>
	</div>

	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/button.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/borrow/borrow_applylist.js"></script>
	<script type="text/javascript">
		$(function() 
		{
//			var json = '{$json_list}';
//			var array = JSON.parse(json);
//			$('#default_table').datagrid({loadFilter:pagerFilter}).datagrid('loadData', array);
            $("#default_table").datagrid();
		});
	</script>
</body>
</html>